<%@page contentType="text/html"%>
<%@page pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>JSP Page</title>
    </head>
    <body bgcolor="#ffffddd">
        <%@ include file="divInclude.jsp" %>
        
        <h1 align="center">Dados do Cliente</h1>
        <h3 align="center" style="color:red" >${requestScope["ERRO"]}</h3>
        
        <form action="Controlador" method="POST">
            <table width="21%" align="center" cellpadding="2" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#EEE8AA">
                <tr>
                    <td>Nome:</td>
                    <td><input name="txtNome" type="text" id="txtNome" value="${sessionScope.clienteEdicao.nome}"></td>
                </tr>
                <tr>
                    <td>Login:</td>
                    <td><input name="txtLogin" type="text" <c:if test="${sessionScope.clienteEdicao != null and sessionScope.clienteEdicao.numero !=-1}">disabled="true"</c:if> id="txtLogin" value="${sessionScope.clienteEdicao.login}"></td>
                </tr>
                <tr>
                    <td>Senha:</td>
                    <td><input name="txtSenha" type="password" id="txtSenha" value="${sessionScope.clienteEdicao.senha}"></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <div align="center">
                            <input name="Salvar" type="submit" id="Salvar" value="Salvar">
                        </div>
                    </td>
                </tr>
            </table>
            <input type="hidden" name="cmd" value="SalvarCliente">
        </form>
    </body>
</html>
